package com.bjqh.edu.Bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/10/11.
 */

public class ore implements Parcelable {

    /**
     * code : 0
     * data : {"room_id":"12345678901234","admin_code":"213rjl","teacher_code":"232kj1","student_code":"abc213"}
     * msg :
     */

    private int code;
    private DataBean data;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static class DataBean implements Parcelable {
        /**
         * room_id : 12345678901234
         * admin_code : 213rjl
         * teacher_code : 232kj1
         * student_code : abc213
         */

        private String room_id;
        private String admin_code;
        private String teacher_code;
        private String student_code;

        public String getRoom_id() {
            return room_id;
        }

        public void setRoom_id(String room_id) {
            this.room_id = room_id;
        }

        public String getAdmin_code() {
            return admin_code;
        }

        public void setAdmin_code(String admin_code) {
            this.admin_code = admin_code;
        }

        public String getTeacher_code() {
            return teacher_code;
        }

        public void setTeacher_code(String teacher_code) {
            this.teacher_code = teacher_code;
        }

        public String getStudent_code() {
            return student_code;
        }

        public void setStudent_code(String student_code) {
            this.student_code = student_code;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.room_id);
            dest.writeString(this.admin_code);
            dest.writeString(this.teacher_code);
            dest.writeString(this.student_code);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.room_id = in.readString();
            this.admin_code = in.readString();
            this.teacher_code = in.readString();
            this.student_code = in.readString();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.code);
        dest.writeParcelable(this.data, flags);
        dest.writeString(this.msg);
    }

    public ore() {
    }

    protected ore(Parcel in) {
        this.code = in.readInt();
        this.data = in.readParcelable(DataBean.class.getClassLoader());
        this.msg = in.readString();
    }

    public static final Parcelable.Creator<ore> CREATOR = new Parcelable.Creator<ore>() {
        @Override
        public ore createFromParcel(Parcel source) {
            return new ore(source);
        }

        @Override
        public ore[] newArray(int size) {
            return new ore[size];
        }
    };
}
